# --*-- coding:utf-8 --*--

from SQL import Mysql
from SQL import Oracle
from src import Config


def return_sql_obj():
	if Config.dbtype == "mysql":
		return Mysql()
	elif Config.dbtype == "oracle":
		return Oracle()
	else:
		raise Exception(f"暂时不支持 {Config.dbtype} 数据库，请配置 mysql 或 oracle")


SQL = return_sql_obj()

if __name__ == '__main__':
	print(SQL.SELECT_DEPT)
